/*
 * Copyright 2016-2036 the original author or authors.
 * 
 * COMMERCIAL USE OF THIS SOFTWARE WITHOUT WARRANTY IS NOT ALLOWED.
 * Use is subject to license terms! You can distribute a copy of this software
 * to others for free. This software is a non-profit and open-source project.
 * Any contribution to this project will make it better.
 * All rights reserved! Owned by Stephen Liu.
 * 
 */
package com.github.hingo.service.impl;

import com.github.hingo.entity.StudentCourse;
import com.github.hingo.persistence.StudentCourseMapper;
import com.github.hingo.service.StudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ste7en.liu@gmail.com
 * @since 2016/10/23
 */
@Service("studentCourseService")
public class StudentCourseServiceImpl implements StudentCourseService {

    @Autowired
    private StudentCourseMapper studentCourseMapper;

    @Override
    public void add(StudentCourse studentCourse) {
        studentCourseMapper.add(studentCourse);
    }

    @Override
    public List<StudentCourse> findList(StudentCourse studentCourse) {
        return studentCourseMapper.findList(studentCourse);
    }
}
